<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="CorporatePolicy, App_Web_uxrncow4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style6
        {
            width: 1012px;
            color: #FFFFFF;
        }
        .style14
        {
            height: 27px;
            width: 906px;
            font-size: 8pt;
        }
        .style17
        {
            width: 512px;
        }
        .style18
        {
            width: 239px;
        }
        .style19
        {
            width: 185px;
        }
        .style20
        {
            width: 497px;
        }
        .style21
        {
            width: 207px;
        }
        .style22
        {
            width: 179px;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <script type="text/javascript">
        ddaccordion.init({
            headerclass: "expandable", //Shared CSS class name of headers group
            contentclass: "submenu", //Shared CSS class name of contents group
            collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
            defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
            animatedefault: false, //Should contents open by default be animated into view?
            persiststate: true, //persist state of opened contents within browser session?
            toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
            togglehtml: ["suffix", "<img src='images/plus3.gif' class='statusicon' />", "<img src='images/minus3.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
            animatespeed: "normal" //speed of animation: "fast", "normal", or "slow"

        })
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 58))
                return false;

            return true;
        }


        function validate(id) {
            var n = document.getElementById(id);
            var re = /^[0-9]:[0-9] [to] [0-9]:[0-9]*$/;

            if (re.test(n.value)) {
                n.style.backgroundColor = "#52F40C";
            }
            else {
                window.alert("Invalid Entry");
                n.style.backgroundColor = "#F40C0C";
                n.focus();
                n.value = "";
            }
        }
   
</script>
<table bgcolor="#F56450" width="100%"><tr>
        <th style="font-family: Verdana; font-size: large; " 
            class="style6">
             Corporate Poli<br />
             cy  
        </th>
        </tr>
        </table>
        <table width="100%">
        <tr><td class="style14" 
                
                
                    style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000;"  colspan="4" >
            Policy&nbsp; Details&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label38" runat="server" ForeColor="White" 
                Text="Time Format Should be in 24 Hrs {24:00}"></asp:Label>
            </td></tr>
        </table>
        <table>
        <tr >
        <td >
            <asp:Label ID="Label21" runat="server" Text="Remove Duplicate Punch" 
                Width="231px" Height="16px" style="font-family: Verdana; font-size: 8pt"></asp:Label>
            <asp:Label ID="Label35" runat="server" ForeColor="#FF3300" 
                style="font-weight: 700" Text="*"></asp:Label>
            </td>
        <td class="style21" >
            <asp:Label ID="Label22" runat="server" Text="Max.Early Hour Allow:" Width="140px" 
                style="font-family: Verdana; font-size: 8pt"></asp:Label>
            <asp:Label ID="Label36" runat="server" ForeColor="#FF3300" 
                style="font-weight: 700" Text="*"></asp:Label>
            </td>
        <td class="style22" >
            <asp:Label ID="Label23" runat="server" Text="Max Late Departure Allow:" Width="155px" 
                style="font-family: Verdana; font-size: 8pt"></asp:Label>
            <asp:Label ID="Label37" runat="server" ForeColor="#FF3300" 
                style="font-weight: 700" Text="*"></asp:Label>
            </td>
        <td >
            <asp:Label ID="Label24" runat="server" Text="No of Present for Weekly Off:" 
                Width="229px" style="font-family: Verdana; font-size: 8pt"></asp:Label></td>

        </tr>
        <tr><td>
            <asp:TextBox ID="txtchekmin" runat="server" MaxLength="5"  
               TabIndex="1" Width="182px" 
                BackColor="#FFFFCC" Font-Bold="True" 
                ontextchanged="txtchekmin_TextChanged">00:00</asp:TextBox>
            </td>
            <td class="style21">
                <asp:TextBox ID="txtmaxearly" runat="server" MaxLength="5" 
                    Onkeypress="return isNumberKey(event)" TabIndex="2" Width="182px" 
                    BackColor="#FFFFCC" Font-Bold="True" 
                    ontextchanged="txtmaxearly_TextChanged">00:00</asp:TextBox>
            </td>
            <td class="style22">      
                <asp:TextBox ID="txtmaxrate" runat="server" MaxLength="5" 
                    Onkeypress="return isNumberKey(event)" TabIndex="3" Width="181px" 
                    BackColor="#FFFFCC" Font-Bold="True" 
                    ontextchanged="txtmaxrate_TextChanged">00:00</asp:TextBox>
        
                          </td>
                     <td>      
                <asp:TextBox ID="txtnoofweek" runat="server" MaxLength="1" TabIndex="4" 
                             Onkeypress="return isNumberKey(event)" Width="108px" BackColor="#FFFFCC" 
                             Font-Bold="True">4</asp:TextBox>
        
                          </td>
            </tr>
              
     
            </table>
             <table width="100%">
        <tr><td class="style14" 
                
                
                    style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000;"  colspan="4" >
            Mark as Absent as weekly Off as&nbsp;&nbsp;
            <asp:CheckBox ID="chkaaa" runat="server" TabIndex="5" Text="AAA" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            Absent On Single Punch
            <asp:CheckBox ID="chk2" runat="server" />
            </td></tr>
        </table>
        <table> 
           
    <table width="100%">
        <tr>&nbsp;<td class="style14" 
                
                
                    style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000;"  colspan="4" >
            OT Option</td></tr>
        </table>
        <table style="width: 909px">
        <tr>
        <td class="style18">
            <asp:RadioButton ID="optout" runat="server" Text="OT = OutTime-ShiftEndtime" 
                TabIndex="6" GroupName="a" style="font-family: Verdana; font-size: 8pt" 
                           />
        </td>
        <td class="style19">
             <asp:RadioButton ID="optworking" runat="server" Text="OT =Workinghrs-Shifthrs" 
                 TabIndex="7" GroupName="a" style="font-family: Verdana; font-size: 8pt" Checked="True" 
                           />
            </td>
            <td class="style17">
                <asp:RadioButton ID="optearly" runat="server" 
                    Text="OT =EarlyComing+LateDeparture" TabIndex="8" GroupName="a" style="font-family: Verdana; font-size: 8pt" 
                           />
            </td>
             
             
        </tr>
      
        </table>
        <table width="100%">
        <tr><td class="style14" 
                
                
                    style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000;"  colspan="4" >
            Pay Calculation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:CheckBox ID="chkpayroll" runat="server" 
                style="font-size: 9pt; font-weight: 700" Text="Payroll" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            Salary Calculation Mode :
            <asp:CheckBox ID="Chkfix" runat="server" Text="Fixed" />
            </td></tr>
        </table>
        <table>
        <tr>
        <td>
            <asp:RadioButton ID="rdcalallinout" runat="server" 
                GroupName="dd" Text="Calculate All In Out" 
                style="font-family: Verdana; font-size: 8pt" AutoPostBack="True" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;</td>
        <td>
            <asp:RadioButton ID="RdCalFirstinLastOut" runat="server"   GroupName="dd"
                  Text="Calcualte First In Last Out" 
                style="font-family: Verdana; font-size: 8pt" Checked="True" 
                AutoPostBack="True" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </td>
        <td>
            <asp:RadioButton ID="RdCalFirstInLastOutWithLunch" runat="server"   GroupName="dd"
                  Text="Calcualte First In Last Out With Lunch" 
                style="font-family: Verdana; font-size: 8pt" AutoPostBack="True" />
        </td>
        </tr>
        <tr>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        <td>
            &nbsp;</td>
        </tr>
        </table>
        <table width="100%">
        <tr><td class="style14" 
                
                
                    style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000;"  colspan="4" >
            Card Details</td></tr>
        </table>
        <table>
        <tr>
        <td class="style20">
                <asp:Label ID="Label2" runat="server" Text="9900-Used For Bus Delay" 
                    style="font-size: 8pt" Font-Bold="True"></asp:Label><br />
                 <asp:Label ID="Label4" runat="server" 
                    Text="9901-Used For Coming Late With Permission" 
                    style="font-family: Verdana; font-size: 8pt" Font-Bold="True"></asp:Label>
            <br />
          <asp:Label ID="Label1" runat="server" 
                    Text="9002-Used For Going Out On Official Duty" 
                    style="font-family: Verdana; font-size: 8pt" Font-Bold="True"></asp:Label>
                <br />
          <asp:Label ID="Label39" runat="server" 
                    Text="9903-Used For Lunch Break" 
                    style="font-family: Verdana; font-size: 8pt" Font-Bold="True"></asp:Label>
                <br />
          <asp:Label ID="Label40" runat="server" 
                    Text="9904-Used For Tea Break" 
                    style="font-family: Verdana; font-size: 8pt" Font-Bold="True"></asp:Label>
                <br />
                <br />
        </td>
        </tr>
        </table>
   
       <center  style="font-family: Verdana; font-weight: bold; background-color: #FF8448; color: #000000; height: 30px;">
       
           <asp:Button ID="BtnAdd" runat="server" onclick="BtnAdd_Click" Text="Save"  onclientclick="return validate()"
               Width="73px" style="font-weight: 700" ForeColor="White" Height="26px" />
           <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Cancel" 
               style="font-weight: 700" ForeColor="White" Width="74px" />
       </center>
        
     <link rel="stylesheet" type="text/css" href="css/colors/orange.css" id="colors">
    <link rel="stylesheet" type="text/css" href="css/animate.css">
    <link href="Gridstyle.css" rel="stylesheet" type="text/css" />
        <link href="css/Table.css" rel="stylesheet" type="text/css" />
     <%--   </td>
        </tr>
        </table>--%></asp:Content>
